<template>
    <div class="home">
        <div class="home-container">
            <h1>home</h1>
            <span>test</span>
        </div>
    </div>
</template>
<script>
    import "./styles/index.less";
    import Service from '../../common/lib/service';

    Service.bindUrls({
        getType: "/default/{type}",
        postType: "/object"
    });

    export default{
        data(){
            return{
                msg:'hello vue'
            }
        },
        mounted(){
            Service.fetch({
                name: "getType",
                path: {
                    type: "image"
                }
            }).then(res=> {
                console.log(res);
            })
        }
    }

</script>
